<script setup lang="ts">
import ToggleButton from '@/components/ToggleButton'
</script>

<template>
  <h1 class="title">
    <span>C</span><span>S</span><span>S</span> challenges
    <ToggleButton class="toggle-btn" />
  </h1>
</template>
<style lang="scss" scoped>
.clip,
.dark-mode {
  h1.title {
    border-bottom: 1px solid rgb(250, 250, 250);
  }
}
h1.title {
  color: rgb(16, 164, 137);
  text-align: center;
  text-shadow: 1px 1px 2px rgb(111, 234, 211);
  padding: 0 0 20px;
  margin: 0;
  border-bottom: 1px solid black;
  box-sizing: border-box;
  position: relative;
  height: 10vh;

  span {
    &:first-of-type {
      color: rgba(243, 143, 21, 0.726);
      text-shadow: 2px 2px 2px rgba(247, 177, 92, 0.553);
    }

    &:nth-of-type(2) {
      color: rgba(243, 143, 21, 0.726);
      text-shadow: 2px 2px 2px rgba(247, 177, 92, 0.553);
    }

    &:nth-of-type(3) {
      color: rgba(243, 143, 21, 0.726);
      text-shadow: 2px 2px 2px rgba(247, 177, 92, 0.553);
    }
  }

  .toggle-btn {
    position: absolute;
    right: 30px;
    top: 43%;
    transform: translateY(-50%);
  }
}
</style>
